import java.util.Scanner;
public class a6{
    public static void main(String[] args){
    Scanner scanner =new Scanner(System.in);
    System.out.println("你是否是本超市会员？");
    String c=scanner.next();
        if ("是".equals(c)) {
            System.out.println("请输入商品总价：");
            double d = scanner.nextDouble();
            if (d >= 100) {
                System.out.println("折扣额" + d * 0.2 + "最终要付" + d * 0.8);
            }
            if (d < 100) {
                System.out.println("折扣额" + d * 0.1 + "最终要付" + d * 0.9);
            }
        }
        System.out.println("请输入商品总价：");
        double e = scanner.nextDouble();
        if (e >= 100) {
            System.out.println("折扣额" + e * 0.1 + "最终要付" + e * 0.9);
        } else if (e < 100) {
            System.out.println("不打折" + e);
        }
    }}